package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="com-wowudi-entity-House")
@TableName(value = "ill_house")
public class House implements Serializable {
    /**
     * id
     */
    @TableId(value = "hih_id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Integer hihId;

    /**
     * 病房编号
     */
    @TableField(value = "hih_card")
    @ApiModelProperty(value="病房编号")
    private String hihCard;

    /**
     * 对应的科室id
     */
    @TableField(value = "dpc_id")
    @ApiModelProperty(value="对应的科室id")
    private Integer dpcId;

    /**
     * 已住的患者数量
     */
    @TableField(value = "patient_num")
    @ApiModelProperty(value="已住的患者数量")
    private Integer patientNum = 0;

    /**
     * 病房状态
     */
    @TableField(value = "hih_status")
    @ApiModelProperty(value="病房状态")
    private String hihStatus;


    @TableField(exist = false)
    private DepartmentClass departmentClass;

    @TableField(exist = false)
    private List<String> equipmentNameList;

    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return super.toString();
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
    }
}
